#include <stdio.h> 
#include <sys/syscall.h> 
#include <sys/types.h> 
#include <sys/module.h> 
	int 
main(int argc, char *argv[]) 
{ 
	int syscall_num; 
	struct module_stat stat;
	int modid;
	if (argc != 2) { 
		printf("Usage:\n%s <string>\n", argv[0]); 
		exit(0); 
	} 
	/* Determine sc_example's offset value. */ 
	stat.version = sizeof(stat); 
	modid=modfind("sc_example");
	printf("modid is %d\n",modid);
	if(modid<0){
		perror("not found mod\n");
		return 1;
	}
	modstat(modid, &stat); 
	syscall_num = stat.data.intval; 
	printf("syscall no:%d\n",syscall_num);
	/* Call sc_example. */ 
	return(syscall(syscall_num, argv[1])); 
} 
